<template>

  <!--首页 提号 选择商品类型 -->
  <el-dialog class="pick-dialog" title="提号" :visible.sync="dialogVisible" :close-on-click-modal="false" width="720px">
    <div class="tihao">
      <div class="flex">
        <div class="lc_box">
          <img style="width: 427px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaoliucheng1.png" alt="">
        </div>
        <div>
          <div class="tit flex alc">
            <img style="width: 20px;height: 20px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/huo.png" alt="">
            <span>自营账号</span>
          </div>
          <div class="btn" @click="goLink('/tenantGoods/goodsManage',{type:'myAccount'},true)">
            <img style="width: 106px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaobtn2.png" alt="">
          </div>
          <div class="des">
            自己上传的商品请进入(商品管理—提号)进行操作
          </div>
        </div>
      </div>
      <div class="flex">
        <div class="lc_box">
          <img style="width: 427px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaoliucheng22.png" alt="">
        </div>
        <div>
          <div class="tit flex alc">
            <img style="width: 20px;height: 20px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/fangzi.png" alt="">
            <span>自营商城</span>
          </div>
          <div class="btn" @click="goLink('/tenantOrders/zyscShangpin',{retailKey:'zysc'})">
            <img style="width: 106px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaobtn2.png" alt="">
          </div>
          <div class="des">
            自营商城的商品请进入(商城货源—提号)进行操作
          </div>
        </div>
      </div>
      <div class="flex">
        <div class="lc_box">
          <img style="width: 427px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaoliucheng33.png" alt="">
        </div>
        <div>
          <div class="tit flex alc">
            <img style="width: 20px;height: 20px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/qianbao.png" alt="">
            <span>分销网（选号网）</span>
          </div>
          <div class="btn" @click="goLink('/tenantOrders/fenxiaopeizhi')">
            <img style="width: 106px;" src="https://imgage.maimaihao.com/yuduhulian/erp/static/img/tihao/tihaobtn2.png" alt="">
          </div>
          <div class="des">
            选号网的商品请进入(分销网货源—提号)进行操作
          </div>
        </div>
      </div>

    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "",
  components: {},
  data() {
    return {
      dialogVisible: false,
      loading: false,
    };
  },
  computed: {
    userInfo() {
      return this.$store.getters.userInfo;
    },
    shopInfo() {
      return this.$store.getters.shopInfo;
    },
  },
  methods: {
    open() {
      this.loading = false;
      this.dialogVisible = true;
    },
    goLink(link,query={}, flag) {
      if (link.indexOf("http") > -1) {
        window.open(link, "_blank");
      } else {
        if (flag) {
          // 加时间戳
          const timestamp = new Date().getTime();
          this.$router.push({
            path: link,
            query: {
              ...query,
              timestamp,
            },
          });
        } else {
          this.$router.push({
            path: link,
            query: {
              ...query,
              timestamp,
            },
          });
        }
      }
      this.close();
    },

    close(formName) {
      this.dialogVisible = false;
    },
  },
};
</script>
<style scoped lang="scss">
.tihao {
  > .flex {
    margin-bottom: 15px;
  }
  .lc_box {
    margin-right: 20px;
  }

  .tit {
    margin-top: 10px;
    font-size: 13px;
    color: #11142d;
    font-weight: bold;
    span {
      margin-left: 5px;
    }
  }
  .btn {
    cursor: pointer;
    margin-top: 15px;
    &:hover {
      transform: scale(1.05);
      transition: 0.2s;
      transform-origin: left;
    }
  }
  .des {
    margin-top: 5px;
    font-weight: 500;
    font-size: 16px;
    color: #b2b3bd;
    line-height: 24px;
  }
}
</style>
